import request from '@/utils/request'

// 查询优秀内容推荐列表
export function listNewmycontent(query) {
  return request({
    url: '/system/newmycontent/list',
    method: 'get',
    params: query
  })
}

// 查询优秀内容推荐详细
export function getNewmycontent(id) {
  return request({
    url: '/system/newmycontent/' + id,
    method: 'get'
  })
}

// 新增优秀内容推荐
export function addNewmycontent(data) {
  return request({
    url: '/system/newmycontent',
    method: 'post',
    data: data
  })
}

// 修改优秀内容推荐
export function updateNewmycontent(data) {
  return request({
    url: '/system/newmycontent',
    method: 'put',
    data: data
  })
}

// 删除优秀内容推荐
export function delNewmycontent(id) {
  return request({
    url: '/system/newmycontent/' + id,
    method: 'delete'
  })
}
